﻿
using System.Windows.Controls;


namespace Company.Shell.Dialogs
{
    
    /// <summary>
    /// MessageDialog.xaml 的交互逻辑
    /// </summary>
    public partial class MessageDialog : Border
    {
        public bool Successe { get; set; } = false;
        public MessageDialog()
        {
            InitializeComponent();
        }

        public MessageDialog(string message = "")
        {
            InitializeComponent();
            if (!string.IsNullOrEmpty(message))
            {
                textblock.Text = message;
            }
        }

        private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            Successe = true;
        }
    }
}
